import os
from pydantic_settings import BaseSettings  # 修复导入

class Settings(BaseSettings):
    PROJECT_NAME: str = "FastAPI MySQL 博客系统"
    DB_HOST: str
    DB_PORT: int
    DB_USER: str
    DB_PASS: str
    DB_NAME: str
    
    class Config:
        case_sensitive = True
        env_file = ".env"

settings = Settings()
